<?php
$mod='blank';
$title='自助下载源码';
include("../Core/Common.php");
?>
<!DOCTYPE html>
<html lang="zh-cn">
  
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" itemprop="description" content="在这里自助下载源码" />
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title><?php echo $conf['sitename']?> - <?=$title?></title>
    <link href="//cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.css" rel="stylesheet">
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <link href="http://ds.52saf.com/static/common/css/animate.min.css" rel="stylesheet"/>
    <link href="http://ds.52saf.com/static/common/css/style.min.css" rel="stylesheet"/>
    <link href="http://ds.52saf.com/static/common/css/theme/default.css" rel="stylesheet" id="theme"/>
    <script src="http://ds.52saf.com/static/common/js/pace.min.js"></script>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <script src="../Core/Assets/Layer/layer.js"></script>
</head>

      <div id="navbar" class="navbar-collapse collapse" aria-expanded="false" style="height: 1px;">
        <ul class="nav navbar-nav navbar-right">
              <li>
            <a href="/index.php"> 正版查询</a>
          </li>
          <li><a href="/Get"> 程序下载</a></li>   
          <li><a href="/User/Buy.php"> 自助购买</a></li>  
          <li><a href="/Daili"> 授权商登录</a></li>  
            </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container -->
  </nav><!-- /.navbar -->
<body>
<?php if(!isset($_GET['qq']) && !isset($_GET['url'])) {?>
<div class="container">
<div class="col-xs-12 col-sm-10 col-md-8 col-lg-6 center-block" style="float: none;">
<div class="panel panel-primary">
	<div class="panel-heading" style="text-align: center;"><h3 class="panel-title">自助邮箱验证下载源码
	</div>
	<div class="panel-body" style="text-align: center;">
		<div class="list-group">
			<div class="list-group-item">请填写你授权时的QQ,后输入你收到的邮箱验证码进行验证</div>
			<div class="list-group-item list-group-item-info" style="font-weight: bold;" id="login">
				<span id="loginmsg">输入QQ获取验证码</span><span id="loginload" style="padding-left: 10px;color: #790909;">.</span>
			</div>
			<br>
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
              <input type="text" name="qq" value="<?php echo @$_GET['qq'];?>" class="form-control" placeholder="你的QQ" required="required"/>
            </div>
			<br>
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
              <input type="text" name="yzm" value="<?php echo @$_GET['yzm'];?>" class="form-control" placeholder="验证码" required="required"/>
            </div>
			<br>
			<div class="list-group-item" id="an_div"><href="#" id="an" onclick="getqrpic();" class="btn btn-block btn-primary">获取邮箱验证码</a></div>
			<div class="list-group-item" id="dl_div"><a href="#" id="dl" onclick="checkqq();" class="btn btn-block btn-primary">开始验证</a></div>	
            <div class="list-group-item" id="down_div"</div>				
		</div>
	</div>
</div>
<?php
}else{
$qq=daddslashes($_GET['qq']);
$url=daddslashes($_GET['url']);
$row = $DB->query("SELECT * FROM pay_check WHERE qq='{$qq}' limit 1")->fetch();
if($row=='')exit("<script language='javascript'>alert('授权平台不存在该QQ！');history.go(-1);</script>");
if($row['status']==0)exit("<script language='javascript'>alert('此QQ的授权已被封禁！');history.go(-1);</script>");
if($_SESSION['check_qq']==$_GET['qq'] or $time>time()){}else exit("<script language='javascript'>alert('请重新验证！');history.go(-1);</script>");
$authcode=$row['authcode'];
$cloud=$DB->query("SELECT * FROM `pay_cloud` WHERE `qq`='{$row['qq']}' limit 1")->fetch();
$pid=$cloud['pid'];
$key=$cloud['key'];
?>

</head>
<body>
<div class="container">
<div class="col-xs-12 col-sm-10 col-md-8 col-lg-6 center-block" style="float: none;">
<div class="panel panel-primary">
<div class="panel-heading" style="text-align: center;"><h3 class="panel-title">获取下载成功
</div>
<div class="panel-body" style="text-align: center;">
<div class="list-group">
<div class="list-group-item">您的验证已经成功，赶快下载源码吧</div>
<div class="list-group-item list-group-item-info" style="font-weight: bold;" id="login">
<span>验证成功呀</span><span style="padding-left: 10px;color: #790909;">.</span>
</div>
<br>
<li class="list-group-item"><span class="glyphicon glyphicon-stats"></span> <b>授权ＱＱ：</b> <?=$qq?>&nbsp;<a href="tencent://message/?uin=2109877665&amp;Site=授权平台&amp;Menu=yes"><img src="http://pub.idqqimg.com/wpa/images/counseling_style_52.png" border=0></a></li>
<li class="list-group-item"><span class="glyphicon glyphicon-tint"></span> <b>云端账号：</b> <?=$pid?></li>
<li class="list-group-item"><span class="glyphicon glyphicon-tint"></span> <b>云端密码：</b> <?=$key?></li>
<li class="list-group-item"><span class="glyphicon glyphicon-time"></span> <b>授权代码：</b> <?=$authcode?></li>
<li class="list-group-item"><span class="glyphicon glyphicon-list"></span> <b>下载类型：</b> 
<a href="Download.php?my=installer&r=<?=time()?>" class="btn btn-xs btn-success">完整安装包</a>&nbsp;
<a href="Download.php?my=updater&r=<?=time()?>" class="btn btn-xs btn-primary">更新包</a>
</li>
</ul>
<div class="panel-footer">
<span class="glyphicon glyphicon-info-sign"></span> 新购用户请下载完整安装包！
</div>
</div>
<?php } ?>
</div>
<p style="text-align:center"><br>&copy; Powered by <a href="http://wpa.qq.com/msgrd?v=3&uin=2409804436&site=qq&menu=yes">惜语</a>!</p></div>
<script src="getd.js?ver=<?=time();?>"></script>
</body>
</html>